﻿namespace MongoDb.Api.Common
{
    public class ResultObject
    {
        public ResultObject()
        {
            this.Code = 0;
            this.Message = "处理失败";
        }

        /// <summary>
        /// 
        /// </summary>
        public bool Result { get; set; }   
        /// <summary>
        /// 
        /// </summary>
        public int Code { get; set; }   
        /// <summary>
        /// 
        /// </summary>
        public string Message { get; set; } 
    }

    /// <summary>
    /// 
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class ResultObject<T> :ResultObject where T : class,new()
    {
        public T Data { get; set; }
    }
}
